package com.hl.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 会员列表对象 lili_shop_member
 * 
 * @author ruoyi
 * @date 2025-08-05
 */
public class LiliShopMember extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String memberId;

    /** UUID唯一标识 */
    @Excel(name = "UUID唯一标识")
    private String memberUuid;

    /** 会员名（用户展示名称，如"张三"） */
    @Excel(name = "会员名", readConverterExp = "用=户展示名称，如张三")
    private String memberName;

    /** 登录密码（存储加密后的哈希值，如bcrypt加密结果） */
    private String password;

    /** 用户头像URL（存储头像图片的访问地址，可为空） */
    private String avatarUrl;

    /** 联系方式（如手机号，支持脱敏显示） */
    @Excel(name = "联系方式", readConverterExp = "如=手机号，支持脱敏显示")
    private String contact;

    /** 注册时间 */
    private Date registerTime;

    /** 积分数量 */
    @Excel(name = "积分数量")
    private Long points;

    /** 角色标识（0=管理员，1=商家，2=用户） */
    private Integer roleId;

    /** 性别 */

    private String gender;

    /** 生日 */
    private Date birthday;

    /** 地区（省/市等） */
    private String region;

    /** 上次登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上次登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastLoginTime;

    /** 启用状态（1=启用，0=禁用） */
    @Excel(name = "启用状态", readConverterExp = "1==启用，0=禁用")
    private Integer isEnabled;

    /** 记录创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createdAt;

    /** 记录更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setMemberId(String memberId) 
    {
        this.memberId = memberId;
    }

    public String getMemberId() 
    {
        return memberId;
    }

    public void setMemberUuid(String memberUuid) 
    {
        this.memberUuid = memberUuid;
    }

    public String getMemberUuid() 
    {
        return memberUuid;
    }

    public void setMemberName(String memberName) 
    {
        this.memberName = memberName;
    }

    public String getMemberName() 
    {
        return memberName;
    }

    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }

    public void setAvatarUrl(String avatarUrl) 
    {
        this.avatarUrl = avatarUrl;
    }

    public String getAvatarUrl() 
    {
        return avatarUrl;
    }

    public void setContact(String contact) 
    {
        this.contact = contact;
    }

    public String getContact() 
    {
        return contact;
    }

    public void setRegisterTime(Date registerTime) 
    {
        this.registerTime = registerTime;
    }

    public Date getRegisterTime() 
    {
        return registerTime;
    }

    public void setPoints(Long points) 
    {
        this.points = points;
    }

    public Long getPoints() 
    {
        return points;
    }

    public void setRoleId(Integer roleId) 
    {
        this.roleId = roleId;
    }

    public Integer getRoleId() 
    {
        return roleId;
    }

    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }

    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }

    public void setRegion(String region) 
    {
        this.region = region;
    }

    public String getRegion() 
    {
        return region;
    }

    public void setLastLoginTime(Date lastLoginTime) 
    {
        this.lastLoginTime = lastLoginTime;
    }

    public Date getLastLoginTime() 
    {
        return lastLoginTime;
    }

    public void setIsEnabled(Integer isEnabled) 
    {
        this.isEnabled = isEnabled;
    }

    public Integer getIsEnabled() 
    {
        return isEnabled;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("memberId", getMemberId())
            .append("memberUuid", getMemberUuid())
            .append("memberName", getMemberName())
            .append("password", getPassword())
            .append("avatarUrl", getAvatarUrl())
            .append("contact", getContact())
            .append("registerTime", getRegisterTime())
            .append("points", getPoints())
            .append("roleId", getRoleId())
            .append("gender", getGender())
            .append("birthday", getBirthday())
            .append("region", getRegion())
            .append("lastLoginTime", getLastLoginTime())
            .append("isEnabled", getIsEnabled())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
